import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

const store = new Vuex.Store({
  // state mutation action getter module
  state: {
    userInfo: {
      uid: '',
      usersUid: '',
      nickname: 'LSE 用户',
      portraitUrl: './static/LSE API LOGO(1).png',
      homePublicity: '',
      backgroundImage: ''
    }
  },
  mutations: {
    updateUserInfo (state, data) {
      state.userInfo = data
    }
  },
  actions: {

  }
})

export default store
